package org.ehe.business.material.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.ehe.common.mybatis.core.domain.BaseEntity2;

import java.math.BigDecimal;

/**
 * 退货单明细实体
 * @author :zhangnn
 * @className :MaterialReturnOrderDetail
 * @description: TODO
 * @date 2025-07-24 10:47:30
 */
@Data
@TableName("t_material_return_order_detail")
public class MaterialReturnOrderDetail extends BaseEntity2 {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 退货单ID
     */
    private Long returnId;

    /**
     * 物料ID
     */
    private Long materialId;

    /**
     * 物料编码
     */
    private String materialCode;
    /**
     * 物料名称
     */
    private String materialName;

    /**
     * 批次号
     */
    private String batchNo;

    /**
     * 退货数量
     */
    private Long returnQuantity;

    /**
     * 单价
     */
    private BigDecimal unitPrice;

    /**
     * 退货金额
     */
    private BigDecimal returnAmount;

    /**
     * 缺陷描述
     */
    private String defectDescription;
}
